package com.xinqi.lover.utils;

import okhttp3.WebSocket;

/**
 * @author xin麒
 * @date 2023/12/12 17:30
 */
public class WebSocketUtils {
    public static void closeAndGC(WebSocket webSocket){
        if (webSocket == null) return;
        webSocket.close(1000, "");
        webSocket = null;//help GC
    }
}
